package com.aijk.ehm.sys.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.sys.model.SysRoleAuth;
import com.aijk.ehm.sys.model.qo.RoleAuthQo;
import com.aijk.ehm.sys.service.SysRoleAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysRoleAuthApi")
public class SysRoleAuthApiImpl implements SysRoleAuthApi {

    @Autowired
    private SysRoleAuthService authService;

    @Override
    public List<SysRoleAuth> getList(RoleAuthQo qo) throws ErrorCodeException {
        return authService.find(qo);
    }
}
